#!/usr/bin/python
# -*- coding: UTF-8 -*-

fo = open("../README.md")
print("文件名：%s\n是否已关闭：%s\n访问模式：%s\n末尾强制加空格：%s" % (fo.name, fo.closed, fo.mode, fo.softspace))
s = fo.read(10)
print(s)
ss = fo.readlines()
for s in ss:
    print(s)
fo.close()
